package com.classtest.DemoExpend.service.Impl;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.classtest.DemoExpend.bean.DbShop;
import com.classtest.DemoExpend.bean.DbUser;
import com.classtest.DemoExpend.dao.DbShopInfoDao;
import com.classtest.DemoExpend.service.DbShopInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DbShopInfoServiceImpl extends ServiceImpl<DbShopInfoDao, DbShop> implements DbShopInfoService {
    @Autowired
    DbShopInfoDao dbShopInfoDao;

    @Override
    public List<DbShop> getShopInfo(String json) {
        return dbShopInfoDao.getShopInfo(JSONObject.parseObject(json,DbShop.class));
    }
    public void updateShopInfo(String json){
        dbShopInfoDao.updateShopInfo(JSONObject.parseObject(json, DbShop.class));
    }
}